﻿using Fee.Orders;
using Fee.Orders.FormalWorkflow;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Fee.Mapping.Orders.FormalOrders
{
    public class FormalOrderMapping : IEntityTypeConfiguration<FormalOrder>
    {
        public void Configure(EntityTypeBuilder<FormalOrder> builder)
        {
            builder.HasBaseType<DelegateOrderBase>();

            builder.HasMany(f => f.PlanCosts);
        }
    }
}